package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderDetail extends BaseEntity {
    private Integer id;
    private String businessName;
    private String pageType;
    private String businessCode;
    private String userName;
    private String orderType;
    private String payType;
    private String tel;
    private String orderNumber;

    private String token;
    private String status;
    private String transactionId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    private Date payTime;

    private String idCard;
    private String idCardZ;
    private String idCardF;
    private BigDecimal yearAmount;
    private int employeesNum;

    private int formSubId;

    private String userKey;

    private Integer idForm;

    /**
     * 企业名称
     */
    @Transient
    private String businessNameForm;

    /**
     * 企业代码
     */
    @Transient
    private String businessCodeForm;

    /**
     * 用户名,法人姓名
     */
    @Transient
    private String userNameForm;

    /**
     * 手机号
     */
    @Transient
    private String telForm;

    /**
     * 订单编号
     */
    @Transient
    private String orderNumberForm;

    /**
     * 状态：0待支付 1已支付
     */
    @Transient
    private String statusForm;

    /**
     * 创建时间
     */
    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    private Date createTimeForm;

    /**
     * 身份证号
     */
    @Transient
    private String idCardForm;

    /**
     * 身份证正面照片
     */
    @Transient
    private String idCardZForm;

    /**
     * 身份证反面照片
     */
    @Transient
    private String idCardFForm;

    /**
     * 年营业额
     */
    @Transient
    private BigDecimal yearAmountForm;

    /**
     * 员工人数
     */
    @Transient
    private Integer employeesNumForm;

    // 页码
    @Transient
    private int pageNum;
    // 条数
    @Transient
    private int pageSize;

    /** 退款状态  0 发起退款  1 退款成功 2 退款关闭 3 退款异常  */
    private String refundStatus;
    // 退款原因
    private String refundReason;

    /** 退款时间 */
    private Date refundTime;

    /** 退款金额 */
    private BigDecimal refundAmount;

    /** 支付金额 */
    private BigDecimal payAmount;

    private BigDecimal amount;
}
